<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<!-- 用户-->
<el-dialog :title="editDiag.title"  :visible.sync="editDiag.show" @close="onCloseUserDialog" :close-on-click-modal="false">
  <el-form :model="editDiag.formUser" :rules="editDiag.rules" ref="userDialogForm" onsubmit="return false;">
    <el-row>
        <el-col :md="11">
            <el-form-item label="用户名：" :label-width="editDiag.formLabelWidth" :prop="editDiag.userNameProp">
		      <el-input v-model="editDiag.formUser.userName" auto-complete="off" :disabled="editDiag.userNameDisable" ></el-input>
		    </el-form-item>
        </el-col>
        <el-col :md="11">
            <el-form-item label="中文名：" :label-width="editDiag.formLabelWidth" prop="aliasName" placeholder="请输入中文别名">
		      <el-input v-model="editDiag.formUser.aliasName" auto-complete="off"></el-input>
		    </el-form-item>
        </el-col>
    </el-row>
<!--     <el-row> -->
<!--         <el-col :md="11"> -->
<!-- 	        <el-form-item label="所属区域：" :label-width="editDiag.formLabelWidth" prop="orgCode"> -->
<!-- 		       <treeselect :options="treeOrgOptions" v-model="editDiag.formUser.orgCode" :normalizer="treeOrg" :default-expand-level="1" placeholder="请选择..."/> -->
<!-- 		    </el-form-item> -->
<!-- 	    </el-col> -->
<!--     </el-row> -->
    <el-row>
        <el-col :md="11">
            <el-form-item label="性别：" :label-width="editDiag.formLabelWidth"  prop="sex" >
              <el-radio class="radio" v-model="editDiag.formUser.sex" label="1">男</el-radio>
              <el-radio class="radio" v-model="editDiag.formUser.sex" label="2">女</el-radio>
		    </el-form-item>
        </el-col>
        <el-col :md="11">
            <el-form-item label="手机号码：" :label-width="editDiag.formLabelWidth"  prop="phone" >
		      <el-input v-model.number="editDiag.formUser.phone" auto-complete="off"></el-input>
		    </el-form-item>
        </el-col>
    </el-row>
    <el-row>
        <el-col :md="11">
            <el-form-item label="QQ：" :label-width="editDiag.formLabelWidth"   prop="qq" >
		      <el-input v-model.number="editDiag.formUser.qq" auto-complete="off"></el-input>
		    </el-form-item>
        </el-col>
        <el-col :md="11">
            <el-form-item label="邮箱：" :label-width="editDiag.formLabelWidth"   prop="email" >
		      <el-input v-model="editDiag.formUser.email" auto-complete="off"></el-input>
		    </el-form-item>
        </el-col>
    </el-row>
    <el-row>
        <el-col :md="11">
            <el-form-item label="出生日期：" :label-width="editDiag.formLabelWidth"   prop="birthDay" >
		      	<el-date-picker type="date" placeholder="选择日期" format="yyyy-MM-dd" v-model="editDiag.formUser.birthDay"></el-date-picker>
		    </el-form-item>
        </el-col>
        <el-col :md="11">
            <el-form-item label="启用状态：" :label-width="editDiag.formLabelWidth"  prop="usable" >
              <el-radio class="radio" v-model="editDiag.formUser.usable" label="1">启用</el-radio>
              <el-radio class="radio" v-model="editDiag.formUser.usable" label="0">禁用</el-radio>
		    </el-form-item>
        </el-col>
    </el-row>
    <el-row>
        <el-col :md="22">
            <el-form-item label="备注：" :label-width="editDiag.formLabelWidth"  prop="remark">
		      <el-input type="textarea" v-model="editDiag.formUser.remark" auto-complete="off"></el-input>
		    </el-form-item>
        </el-col>
    </el-row>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button type="warning" icon="close" @click="editDiag.show= false">{{ editDiag.closeBuName }}</el-button>
    <el-button type="primary" icon="check" @click="saveUser" v-if="editDiag.type!=3">确 定</el-button>
  </div>
</el-dialog>